<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The HaruEncoder class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="haruimage.setmaskimage.html">HaruImage::setMaskImage</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="haruencoder.getbytetype.html">HaruEncoder::getByteType</a></div>
 <div class="up"><a href="book.haru.html">haru</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.haruencoder" class="reference">
 <h1 class="title">The HaruEncoder class</h1>
 
 
 <div class="partintro"><p class="verinfo">(PECL haru &gt;= 0.0.1)</p>
 

  <div class="section" id="haruencoder.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Haru PDF Encoder Class.
   </p>
  </div>

 
  <div class="section" id="haruencoder.synopsis">
   <h2 class="title">类摘要</h2>
 

   <div class="classsynopsis">
    <div class="ooclass"></div>
 

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">HaruEncoder</strong>
     </span>
 
     {</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="haruencoder.getbytetype.html" class="methodname">getByteType</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$text</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$index</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="haruencoder.gettype.html" class="methodname">getType</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="haruencoder.getunicode.html" class="methodname">getUnicode</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$character</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="haruencoder.getwritingmode.html" class="methodname">getWritingMode</a></span>
    ( <span class="methodparam">void</span>
   )</div>

   }</div>

  </div>
  <div class="section" id="haru.haruencoder.constants">
   <h2 class="title">预定义常量</h2>
   <table class="doctable table">
    
    
     <thead>
      <tr>
       <th>Type</th>
       <th>Name</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>int</td>
       <td>HaruEncoder::TYPE_SINGLE_BYTE</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>int</td>
       <td>HaruEncoder::TYPE_DOUBLE_BYTE</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>int</td>
       <td>HaruEncoder::TYPE_UNINITIALIZED</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>int</td>
       <td>HaruEncoder::UNKNOWN</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>int</td>
       <td>HaruEncoder::WMODE_HORIZONTAL</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>int</td>
       <td>HaruEncoder::WMODE_VERTICAL</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>int</td>
       <td>HaruEncoder::BYTE_TYPE_SINGLE</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>int</td>
       <td>HaruEncoder::BYTE_TYPE_LEAD</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>int</td>
       <td>HaruEncoder::BYTE_TYPE_TRAIL</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>int</td>
       <td>HaruEncoder::BYTE_TYPE_UNKNOWN</td>
       <td class="empty">&nbsp;</td>
      </tr>

     </tbody>
    
   </table>

  </div>
 </div>
 
 
























 
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="haruencoder.getbytetype.html">HaruEncoder::getByteType</a> — Get the type of the byte in the text</li><li><a href="haruencoder.gettype.html">HaruEncoder::getType</a> — Get the type of the encoder</li><li><a href="haruencoder.getunicode.html">HaruEncoder::getUnicode</a> — Convert the specified character to unicode</li><li><a href="haruencoder.getwritingmode.html">HaruEncoder::getWritingMode</a> — Get the writing mode of the encoder</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="haruimage.setmaskimage.html">HaruImage::setMaskImage</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="haruencoder.getbytetype.html">HaruEncoder::getByteType</a></div>
 <div class="up"><a href="book.haru.html">haru</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
